permutation of string geeksforgeeks